package com.scorpio.goods.service;


import java.util.List;

import com.scorpio.common.core.page.TableDataInfo;
import com.scorpio.goods.domain.GoodsEntity;
import com.scorpio.goods.dto.GoodsDTO;
import com.scorpio.goods.vo.AddGoodsVo;
import com.scorpio.goods.vo.UpdateInventoryVo;

/**
 * 商品Service接口
 *
 * @author scorpio
 * @date 2021-10-29
 */
public interface IGoodsService {

    //查询商品
    GoodsEntity selectById(Long id);

    //查询商品列表
    TableDataInfo selectList(GoodsEntity entity);

    //刷新库存和价格
    int updateSoldoutAndPrice(Long id);

    //新增商品
    int save(AddGoodsVo vo);

    //修改商品
    int update(AddGoodsVo vo);

    //批量删除商品
    int deleteByIds(Long[] ids);

    int updateInventory(Long id, Integer change);

}
